#pragma once
#include "bitmapbtn.h"

class CSkinButton :
	public CBitmapBtn
{
protected:
public:
	CString m_strIDName;
	int m_nID;
	BOOL m_bDisp;
	void LoadButton(HINSTANCE hIns, CString strFileNormal = _T(""), CString strFileOver = _T(""), 
		CString strFileDown = _T(""), CString strFileDisable = _T(""),   CString strFileOver1= _T(""));
	void LoadButton(HBITMAP hBmpN, HBITMAP hBmpO, HBITMAP hBmpDown, HBITMAP hBmpDisable, HBITMAP hBmpO1);
public:
	CSkinButton();
	virtual ~CSkinButton();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg HRESULT OnChildRbuttonUp(WPARAM wParam, LPARAM lParam);


	DECLARE_EVENTSINK_MAP()
	void NodefyMediactrl1(LONGLONG inTime);
	void NodefyStatusMediactrl1(long outStatus);
};
